
package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.PlaneState;
import com.sasis.dao.PlaneStateDao;
import com.sasis.service.PlaneStateManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class PlaneStateManagerImpl extends BaseManager implements PlaneStateManager {
    private PlaneStateDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setPlaneStateDao(PlaneStateDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.PlaneStateManager#getPlaneStates(com.sasis.model.PlaneState)
     */
    public List getPlaneStates(final PlaneState planeState) {
        return dao.getPlaneStates(planeState);
    }

    /**
     * @see com.sasis.service.PlaneStateManager#getPlaneState(String id)
     */
    public PlaneState getPlaneState(final String id) {
        return dao.getPlaneState(new Integer(id));
    }

    /**
     * @see com.sasis.service.PlaneStateManager#savePlaneState(PlaneState planeState)
     */
    public void savePlaneState(PlaneState planeState) {
        dao.savePlaneState(planeState);
    }

    /**
     * @see com.sasis.service.PlaneStateManager#removePlaneState(String id)
     */
    public void removePlaneState(final String id) {
        dao.removePlaneState(new Integer(id));
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
